# ==========================================================================
# This ebuild come from ecatmurs repository. Zugaina.org only host a copy.
# For more info go to http://gentoo.zugaina.org/
# ***************** General Portage Overlay (11/04/06) *****************
# ==========================================================================
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Unicode-aware text to PostScript converter"
HOMEPAGE="http://paps.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND="x11-libs/pango"
DEPEND="${RDEPEND}
	dev-util/pkgconfig
	app-doc/doxygen app-text/docbook-sgml-utils"

src_unpack() {
	unpack ${A}; cd ${S}
	sed -e 's|$(prefix)|$(DESTDIR)/$(prefix)|' -i doc/Makefile.{am,in}
        
        epatch ${FILESDIR}/${PN}-0.6.8-fix_landscape.patch
}

src_install() {
	make install DESTDIR="${D}" || die "make install failed"
	dodoc AUTHORS ChangeLog NEWS README TODO
}
